Personal tools

Lua/Events/Shared/PlayerJoin

From JC2-MP Documentation

< Lua
Jump to: navigation, search
Name    PlayerJoin
Arguments (in table)    Player player
Return option    None


Description

Fired when a player joins the server.

Examples

function Foo(args)
	print(args.player:GetName().." joined the server")
end
 
Events:Subscribe("PlayerJoin", Foo)